ReactAPI 索引React V18hydrateRoothydrateRoot 服务端渲染的应用程序必须使用 hydrateRoot 替代 createRoot const root = document.getElementById('root')!;hydrateRoot(root, <App />);